//package chatRoom.com.fenwe.controller;
//
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.bind.annotation.RequestBody;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RestController;
//
//import chatRoom.com.fenwe.controller.data.QueryFriendRequest;
//import chatRoom.com.fenwe.controller.data.QueryUserRequest;
//import chatRoom.com.fenwe.controller.response.BaseResponse;
//import chatRoom.com.fenwe.controller.response.FailResponse;
//import chatRoom.com.fenwe.controller.response.SuccessResponse;
//import chatRoom.com.fenwe.dao.entity.UserDO;
//import chatRoom.com.fenwe.service.IUserService;
//
//@RestController
//@RequestMapping(value = "/user", produces = "application/json;charset=UTF-8")
//public class UserController {
//    @Autowired
//    private IUserService userService;
//
//    @RequestMapping("/queryUserById")
//    public BaseResponse queryUserById(@RequestBody QueryUserRequest queryUserRequest) {
//        try {
//            return new SuccessResponse(userService.queryUser(queryUserRequest));
//        } catch (Exception e) {
//            e.printStackTrace();
//            return new FailResponse(e);
//        }
//    }
//
//    @RequestMapping("/queryFriendsById")
//    public BaseResponse queryFriendsById(@RequestBody QueryFriendRequest queryFriendRequest) {
//        try {
//            return new SuccessResponse(userService.queryFriends(queryFriendRequest));
//        } catch (Exception e) {
//            e.printStackTrace();
//            return new FailResponse(e);
//        }
//    }
//}
